export const STATUS_ENUMS = {
    true: '启用',
    false: '停用',
};

export const STATUS_OPTIONS = () =>
    Object.entries(STATUS_ENUMS).map(([key, label]) => ({
        label,
        value: JSON.parse(key),
    }));


export const WEEK_ENUMS = {
    1: '星期一',
    2: '星期二',
    3: '星期三',
    4: '星期四',
    5: '星期五',
    6: '星期六',
    7: '星期日',
};

export const WEEK_OPTIONS = () =>
    Object.entries(WEEK_ENUMS).map(([key, label]) => ({
        label,
        value: JSON.parse(key),
    }));

export const REST_ENUMS = {
    true: '是',
    false: '否',
}

export const REST_OPTIONS = () =>
    Object.entries(REST_ENUMS).map(([key, label]) => ({
        label,
        value: JSON.parse(key),
    }));
